package com.champChooser.constants
{
	import flash.net.SharedObject;
	
	public final class CCConstants
	{
		
		public static const SERVER_IP:String = "localhost";
		public static const DB_IP:String = "localhost";
		
		public static const LSO_LOGGED_IN_USER_ID:String = "loggedInUserId";
		public static const LSO_LOGGED_IN_USER:String = "user";
		
		public static function getLoggedInUser():SharedObject{
			var loggedInUser:SharedObject = SharedObject.getLocal(LSO_LOGGED_IN_USER);
			return loggedInUser;
		}
		
		public static const COUNTRY_NAME_AUSTRALIA:String = "Australia";
		public static const COUNTRY_NAME_BANGLADESH:String = "Bangladesh";
		public static const COUNTRY_NAME_ENGLAND:String = "England";
		public static const COUNTRY_NAME_INDIA:String = "India";
		public static const COUNTRY_NAME_NEWZELAND:String = "New Zealand";
		public static const COUNTRY_NAME_PAKISTAN:String = "Pakistan";
		public static const COUNTRY_NAME_SOUTHAFRICA:String = "South Africa";
		public static const COUNTRY_NAME_SRILANKA:String = "Sri Lanka";
		public static const COUNTRY_NAME_WESTINDIES:String = "West Indies";
		public static const COUNTRY_NAME_ZIMBABWE:String = "Zimbabwe";
		
		public static const PLAYER_TYPE_BATSMAN:String = "Batsman";
		public static const PLAYER_TYPE_BOWLER:String = "Bowler";
		public static const PLAYER_TYPE_ALLROUNDER:String = "AllRounder";
		public static const PLAYER_TYPE_WICKETKEEPER:String = "WicketKeeper";
		
		public static const TEAM_CREDIT_LIMIT:int = 1000;
		public static const TEAM_BATSMEN_LIMIT:int = 5;
		public static const TEAM_ALLROUNDERS_LIMIT:int = 1;
		public static const TEAM_WICKETKEEPERS_LIMIT:int = 1;
		public static const TEAM_BOWLERS_LIMIT:int = 4;
	}
}